package com.neu.eurekaprovidebook.Service;

import com.neu.dto.BookDto;
import com.neu.eurekaprovidebook.Mapper.BookMapper;
import com.neu.util.CommonResult;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class BookService {
    @Resource
    private BookMapper bookMapper;

    public CommonResult doAdd(BookDto dto){
        CommonResult result = new CommonResult();
        int row = bookMapper.add(dto);
        return result;
    }

}
